public class Demo3 {
    public static void main(String[] args) {
int[] array = new int[]{1,2,3,4,5};
System.out.print(array[0] + " ");
System.out.print(array[1] + " ");
System.out.print(array[2] + " ");
System.out.print(array[3] + " ");
System.out.print(array[4] + " ");
System.out.println();

array[0] = 100;
array[1] = 200;
array[2] = 300;
array[3] = 400;
array[4] = 500;

System.out.print(array[0] + " ");
System.out.print(array[1] + " ");
System.out.print(array[2] + " ");
System.out.print(array[3] + " ");
System.out.print(array[4] + " ");



    }
}
